<template>
  <div class="every" @click="toDetail(childMsg.id)">
    <div class="top">
      <img class="leftImg" :src="childMsg.imgUrlIcon" alt="">
      <div class="leftContent">
        <span>{{childMsg.name}}</span>
        <div class="discuss">
          <span>评分：{{childMsg.gameScore}}</span>
          <!--<el-rate-->
            <!--v-model="childMsg.gameScore"-->
            <!--disabled-->
            <!--:colors="['#009688', '#009688', '#009688']">-->
          <!--</el-rate>-->
        </div>
      </div>
    </div>
    <div class="commit">
      小编点评：{{childMsg.comment}}
    </div>
  </div>
</template>

<script>
export default {
  name: 'everyDay',
  props: [ 'childMsg' ],
  data () {
    return {
      msg: ''
    }
  },
  methods: {
    toDetail (id) {
      this.$router.push({path: '/detail', query: { userId: id }})
    }
  }
}
</script>
<style scoped>
  .every{
    display: flex;
    flex-direction: column;
    padding-left: 10px;
  }
  .every:hover{
    background:#f5f5f5;
    cursor:pointer;
  }
  .top{
    display: flex;
    flex-direction: row;
    margin-top: 10px;
   }
  .leftImg{
    width: 60px;
    height: 60px;
  }
  .leftContent{
    display: flex;
    text-align: left;
    flex-direction: column;
    justify-content: center;
    margin-left: 10px;
  }
  .leftContent span{
    margin-bottom: 10px;
  }
  .discuss{
    display: flex;
    flex-direction: row;
  }
  .discuss span{
    color: rgba(115, 115, 115, 1);
    font-size: 14px;
    text-align: left;
    font-family: Roboto;
  }
  .discuss img{
    width: 12px;
    height: 12px;
  }
  .commit{
    margin: 10px 0;
    color: rgba(115, 115, 115, 1);
    font-size: 12px;
    text-align: left;
    font-family: Roboto;
  }
</style>
